#ifndef SETTING_H
#define SETTING_H

#include <QWidget>
#include <QPushButton>
#include <QComboBox>
#include <QMessageBox>

class Setting : public QWidget
{
    Q_OBJECT
public:
    explicit Setting(QWidget *parent = nullptr);
    void setAudioList(QStringList audioList);
    void setCurrentComBox(int emergencyIndex, int crashIndex);
    void msgBoxShow(QString msg);

private:
    QComboBox * emergencyBox;
    QComboBox * crashBox;
    QMessageBox msgBox;

signals:
    void pageInfo(QString);
    void emergencyInfo(int, int);

private slots:
    void backBtnDone();
    void okBtnDone();
};

#endif  // SETTING_H
